<?php
$num = array(
    'cardinal' => ['one', 'two', 'three', 'four', 'five', 'six'],
    'ordinal' => ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']
);
print_r( $num );
//遍历改数组
foreach ($num as $item) {
    foreach ($item as $key => $val) {
        echo $key . '=>' . $val . '<br>';
    }
}
reset( $num );
while (list( $k, $v ) = each( $num )) {
    # code...
    while (list( $j, $k ) = each( $v )) {

        echo $j, "===>", $k, '<br/>';
    }
}